Optimal. Leaf size=92 \[ a^2 \sqrt {c+d x^2}-a^2 \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )-\frac {b \left (c+d x^2\right )^{3/2} (b c-2 a d)}{3 d^2}+\frac {b^2 \left (c+d x^2\right )^{5/2}}{5 d^2} \]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 92, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {446, 88, 50, 63, 208} \begin {gather*} a^2 \sqrt {c+d x^2}-a^2 \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )-\frac {b \left (c+d x^2\right )^{3/2} (b c-2 a d)}{3 d^2}+\frac {b^2 \left (c+d x^2\right )^{5/2}}{5 d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 50
Rule 63
Rule 88
Rule 208
Rule 446
Rubi steps
\begin {align*} \int \frac {\left (a+b x^2\right )^2 \sqrt {c+d x^2}}{x} \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {(a+b x)^2 \sqrt {c+d x}}{x} \, dx,x,x^2\right )\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \left (-\frac {b (b c-2 a d) \sqrt {c+d x}}{d}+\frac {a^2 \sqrt {c+d x}}{x}+\frac {b^2 (c+d x)^{3/2}}{d}\right ) \, dx,x,x^2\right )\\ &=-\frac {b (b c-2 a d) \left (c+d x^2\right )^{3/2}}{3 d^2}+\frac {b^2 \left (c+d x^2\right )^{5/2}}{5 d^2}+\frac {1}{2} a^2 \operatorname {Subst}\left (\int \frac {\sqrt {c+d x}}{x} \, dx,x,x^2\right )\\ &=a^2 \sqrt {c+d x^2}-\frac {b (b c-2 a d) \left (c+d x^2\right )^{3/2}}{3 d^2}+\frac {b^2 \left (c+d x^2\right )^{5/2}}{5 d^2}+\frac {1}{2} \left (a^2 c\right ) \operatorname {Subst}\left (\int \frac {1}{x \sqrt {c+d x}} \, dx,x,x^2\right )\\ &=a^2 \sqrt {c+d x^2}-\frac {b (b c-2 a d) \left (c+d x^2\right )^{3/2}}{3 d^2}+\frac {b^2 \left (c+d x^2\right )^{5/2}}{5 d^2}+\frac {\left (a^2 c\right ) \operatorname {Subst}\left (\int \frac {1}{-\frac {c}{d}+\frac {x^2}{d}} \, dx,x,\sqrt {c+d x^2}\right )}{d}\\ &=a^2 \sqrt {c+d x^2}-\frac {b (b c-2 a d) \left (c+d x^2\right )^{3/2}}{3 d^2}+\frac {b^2 \left (c+d x^2\right )^{5/2}}{5 d^2}-a^2 \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.14, size = 93, normalized size = 1.01 \begin {gather*} a^2 \sqrt {c+d x^2}-a^2 \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )+\frac {b \left (c+d x^2\right )^{3/2} (2 a d-b c)}{3 d^2}+\frac {b^2 \left (c+d x^2\right )^{5/2}}{5 d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.09, size = 100, normalized size = 1.09 \begin {gather*} \frac {\sqrt {c+d x^2} \left (15 a^2 d^2+10 a b c d+10 a b d^2 x^2-2 b^2 c^2+b^2 c d x^2+3 b^2 d^2 x^4\right )}{15 d^2}-a^2 \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.86, size = 207, normalized size = 2.25 \begin {gather*} \left [\frac {15 \, a^{2} \sqrt {c} d^{2} \log \left (-\frac {d x^{2} - 2 \, \sqrt {d x^{2} + c} \sqrt {c} + 2 \, c}{x^{2}}\right ) + 2 \, {\left (3 \, b^{2} d^{2} x^{4} - 2 \, b^{2} c^{2} + 10 \, a b c d + 15 \, a^{2} d^{2} + {\left (b^{2} c d + 10 \, a b d^{2}\right )} x^{2}\right )} \sqrt {d x^{2} + c}}{30 \, d^{2}}, \frac {15 \, a^{2} \sqrt {-c} d^{2} \arctan \left (\frac {\sqrt {-c}}{\sqrt {d x^{2} + c}}\right ) + {\left (3 \, b^{2} d^{2} x^{4} - 2 \, b^{2} c^{2} + 10 \, a b c d + 15 \, a^{2} d^{2} + {\left (b^{2} c d + 10 \, a b d^{2}\right )} x^{2}\right )} \sqrt {d x^{2} + c}}{15 \, d^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.32, size = 101, normalized size = 1.10 \begin {gather*} \frac {a^{2} c \arctan \left (\frac {\sqrt {d x^{2} + c}}{\sqrt {-c}}\right )}{\sqrt {-c}} + \frac {3 \, {\left (d x^{2} + c\right )}^{\frac {5}{2}} b^{2} d^{8} - 5 \, {\left (d x^{2} + c\right )}^{\frac {3}{2}} b^{2} c d^{8} + 10 \, {\left (d x^{2} + c\right )}^{\frac {3}{2}} a b d^{9} + 15 \, \sqrt {d x^{2} + c} a^{2} d^{10}}{15 \, d^{10}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 100, normalized size = 1.09 \begin {gather*} -a^{2} \sqrt {c}\, \ln \left (\frac {2 c +2 \sqrt {d \,x^{2}+c}\, \sqrt {c}}{x}\right )+\frac {\left (d \,x^{2}+c \right )^{\frac {3}{2}} b^{2} x^{2}}{5 d}+\sqrt {d \,x^{2}+c}\, a^{2}+\frac {2 \left (d \,x^{2}+c \right )^{\frac {3}{2}} a b}{3 d}-\frac {2 \left (d \,x^{2}+c \right )^{\frac {3}{2}} b^{2} c}{15 d^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.03, size = 88, normalized size = 0.96 \begin {gather*} \frac {{\left (d x^{2} + c\right )}^{\frac {3}{2}} b^{2} x^{2}}{5 \, d} - a^{2} \sqrt {c} \operatorname {arsinh}\left (\frac {c}{\sqrt {c d} {\left | x \right |}}\right ) + \sqrt {d x^{2} + c} a^{2} - \frac {2 \, {\left (d x^{2} + c\right )}^{\frac {3}{2}} b^{2} c}{15 \, d^{2}} + \frac {2 \, {\left (d x^{2} + c\right )}^{\frac {3}{2}} a b}{3 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.69, size = 135, normalized size = 1.47 \begin {gather*} \sqrt {d\,x^2+c}\,\left (\frac {{\left (a\,d-b\,c\right )}^2}{d^2}-c\,\left (\frac {2\,b^2\,c-2\,a\,b\,d}{d^2}-\frac {b^2\,c}{d^2}\right )\right )-\left (\frac {2\,b^2\,c-2\,a\,b\,d}{3\,d^2}-\frac {b^2\,c}{3\,d^2}\right )\,{\left (d\,x^2+c\right )}^{3/2}+\frac {b^2\,{\left (d\,x^2+c\right )}^{5/2}}{5\,d^2}+a^2\,\sqrt {c}\,\mathrm {atan}\left (\frac {\sqrt {d\,x^2+c}\,1{}\mathrm {i}}{\sqrt {c}}\right )\,1{}\mathrm {i} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 72.46, size = 90, normalized size = 0.98 \begin {gather*} \frac {a^{2} c \operatorname {atan}{\left (\frac {\sqrt {c + d x^{2}}}{\sqrt {- c}} \right )}}{\sqrt {- c}} + a^{2} \sqrt {c + d x^{2}} + \frac {b^{2} \left (c + d x^{2}\right )^{\frac {5}{2}}}{5 d^{2}} + \frac {\left (c + d x^{2}\right )^{\frac {3}{2}} \left (4 a b d - 2 b^{2} c\right )}{6 d^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________